{% extends "base.html" %}{% load i18n crm_tags %} {% block title %}{% translate "Reports" %}{% endblock %} {% block content %}

{% translate "Reports" %}

{% blocktranslate trimmed with start=first_day|date:"j M Y" end=today|date:"j M Y" %}{{ start }} to {{ end }}{% endblocktranslate %}

{% for value, label in ranges %}{{ label }}{% endfor %}
{% translate "Download calls (CSV)" %}
{{ total_calls }}{% translate "Calls" %}
{{ reach_rate }}%{% translate "Calls where we spoke with them" %}
{{ prayer_total }}{% blocktranslate trimmed %}Prayer requests, {{ answered }} answered{% endblocktranslate %}
{{ testimonies }}{% translate "Testimonies" %}
{{ new_contacts }}{% blocktranslate trimmed count n=new_believers %}New contacts, {{ n }} new believer{% plural %}New contacts, {{ n }} new believers{% endblocktranslate %}

{% translate "Calls per day" %}

{% blocktranslate trimmed %}Busiest day: {{ peak }}{% endblocktranslate %}
{{ per_day.0.day|date:"j M" }}{{ today|date:"j M" }}

{% translate "What people called about" %}

{% if by_purpose %} {% else %}

{% translate "No calls in this period." %}

{% endif %}

{% translate "Prayer requests by need" %}

{% if prayer_by_cat %} {% else %}

{% translate "No prayer requests in this period." %}

{% endif %}

{% translate "How new contacts heard about us" %}

{% if heard_from %} {% else %}

{% translate "No new contacts in this period." %}

{% endif %}

{% translate "Where new contacts are from" %}

{% if by_region %} {% else %}

{% translate "No new contacts in this period." %}

{% endif %}

{% translate "Agents" %}

{% if per_agent %}
{% for row in per_agent %} {% endfor %}
{% translate "Agent" %}{% translate "Calls" %}{% translate "Spoke with them" %}{% translate "Minutes on calls" %}
{% if row.agent__first_name %}{{ row.agent__first_name }} {{ row.agent__last_name }}{% elif row.agent__username %}{{ row.agent__username }}{% else %}{% translate "Former agent" %}{% endif %} {{ row.total }} {{ row.spoke }} {{ row.minutes|default:"—" }}
{% else %}
{% translate "No calls in this period." %}
{% endif %}
{{ tickets_opened }}{% translate "Tickets opened" %}
{{ tickets_resolved }}{% translate "Of those, resolved" %}
{{ tickets_escalated }}{% translate "Escalated" %}
{{ tickets_crisis }}{% translate "Callers in danger" %}
{{ tickets_open_now }}{% translate "Open right now" %}
{{ fu_created }}{% translate "Follow-ups planned" %}
{{ fu_done }}{% translate "Of those, done" %}
{{ fu_overdue }}{% translate "Late right now" %}
{{ given|tzs }}{% translate "Giving recorded" %}
{% endblock %}